package a.e.a;

import a.c.w;
import a.j.g;
import a.j.jg;
import a.j.ld;

import java.util.HashMap;
import java.util.Map;

public class u
  extends r
{
  protected g g;
  protected Map h;
  protected Map i;
  public static boolean j;
  
  public u(g paramg)
  {
    this.g = paramg;
    this.h = new HashMap();
    this.i = new HashMap();
  }
  
  public Object c()
  {
    return this.g;
  }
  
  public Map f()
  {
    return this.i;
  }
  
  public Map g()
  {
    return this.h;
  }
  
  public void a(String paramString, Object paramObject)
  {
    boolean bool = r.f;
    super.a(paramString, paramObject);
    if ((bool) || (("defaultnodesize".equalsIgnoreCase(paramString)) && ((bool) || ((this.b.get("node") instanceof r)))))
    {
      Object localObject = ((r)this.b.get("node")).b.get("graphics");
      if ((bool) || ((localObject instanceof z))) {
        ((z)localObject).g = new Double(3.141592653589793D);
      }
    }
  }
  
  public void b()
  {
    boolean bool3 = r.f;
    int m = r.e;
    String str = d("defaultnodesize");
    int k = 0;
    if (((bool3) || (str != null)) && ((bool3) || (str.length() > 0)) && ((bool3) || ("labelsize".equalsIgnoreCase(str)))) {
      k = 1;
    }
    double d1 = a("defaultnodeinsetshorizontal", 5.0D);
    double d2 = a("defaultnodeinsetsvertical", 5.0D);
    double d3 = a("defaultnodeminwidth", 5.0D);
    double d4 = a("defaultnodeminheight", 5.0D);
    w localw = this.g.v();
    if (localw.e()) {}
    label286:
    while (bool3)
    {
      ld localld = this.g.w(localw.d());
      if (m != 0) {
        return;
      }
      if (localld != null)
      {
        boolean bool1 = a(localld);
        boolean bool2 = b(localld);
        if (!bool3) {}
        switch (k)
        {
        case 0: 
        default: 
          if (!bool3) {
            if (bool1) {
              d(localld);
            }
          }
          if (bool3) {
            break label286;
          }
          if (bool2)
          {
            c(localld);
            if (bool3) {
              break label286;
            }
            if (m == 0) {
              break;
            }
          }
          break;
        case 1: 
          if (!bool3) {}
          if (!bool3) {}
          a(localld, !bool2, !bool1, d1, d2, d3, d4);
        }
      }
      localw.f();
      if (m == 0) {
        break;
      }
    }
    super.b();
  }
  
  void a(ld paramld, boolean paramBoolean1, boolean paramBoolean2, double paramDouble1, double paramDouble2, double paramDouble3, double paramDouble4)
  {
    boolean bool = r.f;
    if (!bool) {
      if (paramld.x() < 1) {
        return;
      }
    }
    jg localjg = paramld.w();
    double d;
    if (!bool) {
      if (!paramBoolean1)
      {
        d = localjg.S() + 2.0D * paramDouble1;
        if ((bool) || (d < paramDouble3)) {
          d = paramDouble3;
        }
        paramld.e(d);
      }
    }
    if (!paramBoolean2)
    {
      d = localjg.T() + 2.0D * paramDouble2;
      if ((bool) || (d < paramDouble4)) {
        d = paramDouble4;
      }
      paramld.f(d);
    }
  }
  
  boolean a(ld paramld)
  {
    if (!r.f) {}
    return paramld.d() == 3.141592653589793D;
  }
  
  boolean b(ld paramld)
  {
    if (!r.f) {}
    return paramld.c() == 3.141592653589793D;
  }
  
  void c(ld paramld)
  {
    paramld.e(300.0D);
  }
  
  void d(ld paramld)
  {
    paramld.f(300.0D);
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.e.a.u

 * JD-Core Version:    0.7.0.1

 */